import request from '@/utils/request'

const api_name = "/admin/hosp"

export default {
    // 查询列表 By 分页+条件
    getPageList(page, limit, searchObj) {
        return request({
            url: `${api_name}/hospital/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },

    // 更新医院上线状态
    udpateStatus(id, status) {
        return request({
            url: `${api_name}/hospital/updateStatus/${id}/${status}`,
            method: 'get'
        })
    },
    //查看医院详情
    getHospById(id) {
        return request({
            url: `${api_name}/hospital/show/${id}`,
            method: 'get'
        })
    },
    //查看医院科室
    getDeptByHoscode(hoscode) {
        return request({
            url: `${api_name}/department/getDeptList/${hoscode}`,
            method: 'get'
        })
    },


}